package app.sevenc.lib_framework.databind

import android.view.View
import androidx.databinding.BindingAdapter

/**
 * view基础BindingAdapter工具
 *
 * @author Seven-C
 * @date 2021/8/30
 */

@BindingAdapter("isGone")
fun View.bindIsGone(isGone: Boolean) {
    this.visibility = if (isGone) {
        View.GONE
    } else {
        View.VISIBLE
    }
}

